
# from info.module.index import index_bp
from . import index_bp
from flask import session,current_app,render_template

from info import redis_store


@index_bp.route('/')
def helloworld():

    # redis_store.set('name','laowang')
    # session['name3'] = 'tony'

    # current_app.logger.debug('debug')
    # current_app.logger.info('info')
    # current_app.logger.warning('warning')
    # current_app.logger.error('error')
    # current_app.logger.critical('critical')
    return render_template('news/index.html')

@index_bp.route('/favicon.ico')
def get_favicon():
    current_app.send_static_file('news/favicon.ico')